package com.bmf.rest;

import java.util.ArrayList;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import network.manager.IBMFGroup;

@XmlRootElement
@XmlType(propOrder = { "id", "sensorBoardName","group"})

public class Node {


    private String id; 

   // private ArrayList<Group> groups;
    
    private Group group;
    
    private String sensorBoardName;

    
    public Node(){}
    
    public Node(String id){
        this.id=id;
    }
    
    public Node(String id,String sensorBoardName){
     this.id=id;
     this.sensorBoardName=sensorBoardName;
     //groups=new ArrayList<Group>();
    }
    
    public void setId(String id) {
       this.id=id;
    }

    public String getId() {
        return id;
    }
    
   /* public ArrayList<Group> getGroups() {
        return groups;
    }*/

    public String getSensorBoardName() {
        return sensorBoardName;
    }
    
    /*@XmlElementWrapper(name = "groups")
    @XmlElement(name = "group")
    public void setGroups(ArrayList<Group> groups) {
        this.groups = groups;
    }*/

    public void setSensorBoardName(String sensorBoardName) {
        this.sensorBoardName = sensorBoardName;
    }

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }
    
}